home *** CD-ROM | disk | FTP | other *** search
/ Minami 55 / MINAMI55.ISO / Varios / Juegos / 02 - Samurai_vs_Ninjas.swf / scripts / DefineSprite_281 / frame_7 / PlaceObject2_78_5 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2004-10-04  |  3KB  |  150 lines

  1. onClipEvent(enterFrame){
  2.    var mysound = new Sound(this);
  3.    var bex = _parent._parent._x - _root.main.r._x;
  4.    var bey = _parent._parent._y - _root.main.r._y;
  5.    if(random(3) == 0)
  6.    {
  7.       if(_parent._parent._x > _root.main.r._x)
  8.       {
  9.          _parent._parent.gotoAndStop("right");
  10.       }
  11.       else
  12.       {
  13.          _parent._parent.gotoAndStop("left");
  14.       }
  15.    }
  16.    if(Math.abs(bex) <= 44 && Math.abs(bey) <= 4)
  17.    {
  18.       _parent.gotoAndStop(1);
  19.    }
  20.    if(_parent._parent._x < _root.main.r._x && _parent._parent._x <= 320)
  21.    {
  22.       _parent._parent._x += 4.5;
  23.    }
  24.    if(_parent._parent._x > _root.main.r._x && _parent._parent._x >= -320)
  25.    {
  26.       _parent._parent._x -= 4.5;
  27.    }
  28.    if(_parent._parent._y < _root.main.r._y && _parent._parent._y <= 100)
  29.    {
  30.       _parent._parent._y += 2;
  31.    }
  32.    if(_parent._parent._y > _root.main.r._y && _parent._parent._y >= 20)
  33.    {
  34.       _parent._parent._y -= 2;
  35.    }
  36.    if(random(40) == 1)
  37.    {
  38.       _parent.gotoAndStop("σ░ÅΦ╖æ");
  39.    }
  40.    if(this.hittest(_root.main.r.r1.dmz.σàëσêÇ))
  41.    {
  42.       if(_root.hjx == 0)
  43.       {
  44.          _root.main.powr.p -= 20;
  45.          _root.hjx = 1;
  46.       }
  47.       mySound.attachSound("µû⌐Σ╕¡");
  48.       mySound.start();
  49.       if(_parent._parent.p <= 30)
  50.       {
  51.          _parent.gotoAndStop("µ¡╗1");
  52.       }
  53.       else
  54.       {
  55.          _parent.gotoAndStop("Σ╕¡µï¢7");
  56.       }
  57.    }
  58.    if(this.hittest(_root.main.r.r1.dmz.µï│))
  59.    {
  60.       mySound.attachSound("µû⌐Σ╕¡");
  61.       mySound.start();
  62.       if(_parent._parent.p <= 6)
  63.       {
  64.          _parent.gotoAndStop("µ¡╗1");
  65.       }
  66.       else
  67.       {
  68.          _parent.gotoAndStop("Σ╕¡µï¢1");
  69.       }
  70.    }
  71.    if(this.hittest(_root.main.dr1.dr1.sst.sst || _root.main.dr2.dr1.sst.sst || _root.main.dr3.dr1.sst.sst))
  72.    {
  73.       mySound.attachSound("µæöτó░");
  74.       mySound.start();
  75.       if(_parent._parent.p <= 12)
  76.       {
  77.          _parent.gotoAndStop("µ¡╗1");
  78.       }
  79.       else
  80.       {
  81.          _parent.gotoAndStop("Σ╕¡µï¢2");
  82.       }
  83.    }
  84.    if(this.hittest(_root.main.r.r1.dmz.Φ┐₧1))
  85.    {
  86.       mySound.attachSound("Φ┐₧Σ╕¡1");
  87.       mySound.start();
  88.       if(_parent._parent.p <= 6)
  89.       {
  90.          _parent.gotoAndStop("µ¡╗1");
  91.       }
  92.       else
  93.       {
  94.          _parent.gotoAndStop("Σ╕¡µï¢3");
  95.       }
  96.    }
  97.    if(this.hittest(_root.main.r.r1.dmz.Φ┐₧2))
  98.    {
  99.       mySound.attachSound("Φ┐₧Σ╕¡2");
  100.       mySound.start();
  101.       if(_parent._parent.p <= 6)
  102.       {
  103.          _parent.gotoAndStop("µ¡╗1");
  104.       }
  105.       else
  106.       {
  107.          _parent.gotoAndStop("Σ╕¡µï¢1");
  108.       }
  109.    }
  110.    if(this.hittest(_root.main.r.r1.dmz.Φ┐₧3))
  111.    {
  112.       mySound.attachSound("Φ┐₧Σ╕¡3");
  113.       mySound.start();
  114.       if(_parent._parent.p <= 12)
  115.       {
  116.          _parent.gotoAndStop("µ¡╗1");
  117.       }
  118.       else
  119.       {
  120.          _parent.gotoAndStop("Σ╕¡µï¢7");
  121.       }
  122.    }
  123.    if(this.hittest(_root.main.r.r1.dmz.Φ╕Åσëìµû⌐))
  124.    {
  125.       mySound.attachSound("Φ┐₧Σ╕¡2");
  126.       mySound.start();
  127.       if(_parent._parent.p <= 30)
  128.       {
  129.          _parent.gotoAndStop("µ¡╗1");
  130.       }
  131.       else
  132.       {
  133.          _parent.gotoAndStop("Σ╕¡µï¢7");
  134.       }
  135.    }
  136.    if(this.hittest(_root.main.r.r1.jump.Φ╖│))
  137.    {
  138.       mySound.attachSound("Φ╕óΣ╕¡");
  139.       mySound.start();
  140.       if(_parent._parent.p <= 12)
  141.       {
  142.          _parent.gotoAndStop("µ¡╗1");
  143.       }
  144.       else
  145.       {
  146.          _parent.gotoAndStop("Σ╕¡µï¢2");
  147.       }
  148.    }
  149. }
  150.